import formDesigner from '@common/form-designer';

import myInput from './components/index.vue';
import { merge } from 'lodash-es';

const replaceComponent = {
  'src/form-designer/extension/form-designer/rewrite-field-widget/input-widget-rewrite.vue': myInput
};

Object.keys(replaceComponent).forEach((key) => {
  merge(formDesigner.getExportResource(key), {
    default: replaceComponent[key]
  });
});
